import requeat from '../utils/request'

export function getUser(user='user', params={}) {
	return requeat({
		url: `${user}/get_${user}`,
		method: 'get',
		headers : {
            'Authorization': localStorage.getItem(`${user}_token`)
        },
		params
	})
}